Felix Krull [Tue, 16 Oct 2018 17:27:04 +0000 (19:27 +0200)]
Add libostree-sys publish step
Felix Krull [Tue, 16 Oct 2018 15:13:46 +0000 (17:13 +0200)]
Add some metadata to libostree-sys
Felix Krull [Tue, 16 Oct 2018 17:13:23 +0000 (19:13 +0200)]
Remove package stage for now
Felix Krull [Tue, 16 Oct 2018 16:48:35 +0000 (18:48 +0200)]
Do release build and simply job names
Felix Krull [Tue, 16 Oct 2018 16:42:12 +0000 (18:42 +0200)]
Install libostree for everything, actually
Felix Krull [Tue, 16 Oct 2018 16:29:52 +0000 (18:29 +0200)]
Also install libostree-dev for libostree builds
Felix Krull [Tue, 16 Oct 2018 16:29:11 +0000 (18:29 +0200)]
Use libostree from backports
Felix Krull [Tue, 16 Oct 2018 16:24:10 +0000 (18:24 +0200)]
Install libostree in CI
Felix Krull [Tue, 16 Oct 2018 16:20:58 +0000 (18:20 +0200)]
Add CI config
Felix Krull [Tue, 16 Oct 2018 16:20:03 +0000 (18:20 +0200)]
Add workspace Cargo.toml
Felix Krull [Sun, 14 Oct 2018 13:07:15 +0000 (15:07 +0200)]
Un-bump versions
Felix Krull [Fri, 12 Oct 2018 21:46:51 +0000 (23:46 +0200)]
Exclude generated code from clippy
Felix Krull [Fri, 12 Oct 2018 21:25:31 +0000 (23:25 +0200)]
Explicitly implement PartialEq for ObjectName to satisfy clippy
Felix Krull [Fri, 12 Oct 2018 20:55:38 +0000 (22:55 +0200)]
Run cargo fmt on the custom code
Felix Krull [Tue, 9 Oct 2018 21:28:00 +0000 (23:28 +0200)]
Add include to make libostree-sys tests work
Felix Krull [Tue, 9 Oct 2018 21:27:49 +0000 (23:27 +0200)]
Regenerate libostree-sys
Felix Krull [Tue, 9 Oct 2018 21:27:36 +0000 (23:27 +0200)]
Ignore internal structs in libostree-sys
Felix Krull [Tue, 9 Oct 2018 21:11:26 +0000 (23:11 +0200)]
Generate docs for RepoExtManual
Felix Krull [Tue, 9 Oct 2018 21:11:18 +0000 (23:11 +0200)]
Copy autodocs to hand-implemented methods in RepoExtManual
Felix Krull [Tue, 9 Oct 2018 21:10:02 +0000 (23:10 +0200)]
Add docs to generated files
Felix Krull [Tue, 9 Oct 2018 21:07:07 +0000 (23:07 +0200)]
repo: newlines
Felix Krull [Tue, 9 Oct 2018 21:01:31 +0000 (23:01 +0200)]
Regenerate libostree
Felix Krull [Tue, 9 Oct 2018 21:01:06 +0000 (23:01 +0200)]
Regenerate libostree-sys
Felix Krull [Tue, 9 Oct 2018 20:24:06 +0000 (22:24 +0200)]
Add Makefile
Felix Krull [Tue, 9 Oct 2018 20:03:14 +0000 (22:03 +0200)]
Remove sample
Felix Krull [Tue, 9 Oct 2018 20:02:48 +0000 (22:02 +0200)]
Add simple repo roundtrip test
Felix Krull [Tue, 9 Oct 2018 19:13:13 +0000 (21:13 +0200)]
repo: implement list_refs and list_refs_ext
Felix Krull [Tue, 9 Oct 2018 18:57:04 +0000 (20:57 +0200)]
Add RepoListRefsExtFlags
Felix Krull [Tue, 9 Oct 2018 17:32:22 +0000 (19:32 +0200)]
object_name: extend ObjectName
Felix Krull [Sun, 7 Oct 2018 21:50:41 +0000 (23:50 +0200)]
repo: remove now-incorrect comment
Felix Krull [Sun, 7 Oct 2018 21:14:56 +0000 (23:14 +0200)]
repo: change custom new method to std::path::Path-alike
Felix Krull [Wed, 3 Oct 2018 13:22:48 +0000 (15:22 +0200)]
Add ObjectName wrapper to solve hashing issues
Felix Krull [Tue, 2 Oct 2018 20:37:42 +0000 (22:37 +0200)]
sample: try to extract a file from the repo
Felix Krull [Sun, 30 Sep 2018 13:18:54 +0000 (15:18 +0200)]
Ignore Cargo.lock in libs
Felix Krull [Sun, 30 Sep 2018 13:18:09 +0000 (15:18 +0200)]
Try implementing traverse_commit by hand
Felix Krull [Sun, 30 Sep 2018 13:17:26 +0000 (15:17 +0200)]
Generate functions and constants
Felix Krull [Sat, 29 Sep 2018 21:56:32 +0000 (23:56 +0200)]
Integrate docs into source
TODO properly document those steps
Felix Krull [Sat, 29 Sep 2018 17:14:14 +0000 (19:14 +0200)]
Add as much of Repo as easily possible
Felix Krull [Sat, 29 Sep 2018 16:21:36 +0000 (18:21 +0200)]
Add additional 'new' method to Repo
Felix Krull [Sat, 29 Sep 2018 16:03:05 +0000 (18:03 +0200)]
Add a test/sample program
Felix Krull [Sat, 29 Sep 2018 16:02:51 +0000 (18:02 +0200)]
Add a prelude module for star imports
Felix Krull [Sat, 29 Sep 2018 15:39:48 +0000 (17:39 +0200)]
Add some basic types and regenerate
Felix Krull [Sat, 29 Sep 2018 14:40:59 +0000 (16:40 +0200)]
Generate
Felix Krull [Sat, 29 Sep 2018 14:40:47 +0000 (16:40 +0200)]
Add build files for libostree
Felix Krull [Sat, 29 Sep 2018 14:23:10 +0000 (16:23 +0200)]
Start describing libostree
Felix Krull [Sat, 29 Sep 2018 13:45:04 +0000 (15:45 +0200)]
Add manual definition for stat
Felix Krull [Sat, 29 Sep 2018 13:37:23 +0000 (15:37 +0200)]
Update names and dependencies
Felix Krull [Sat, 29 Sep 2018 13:28:13 +0000 (15:28 +0200)]
Add external libraries and regenerate
Felix Krull [Sat, 29 Sep 2018 13:24:41 +0000 (15:24 +0200)]
Add initial gir output
Felix Krull [Sat, 29 Sep 2018 13:21:19 +0000 (15:21 +0200)]
Add config file and gir files
Not sure if I want to keep the gir files in the repo
Joseph Marrero Corchado [Fri, 6 May 2022 11:45:02 +0000 (07:45 -0400)]
Merge pull request #2598 from lucab/ups/without-systemd-fix
lib/ostree-sysroot-deploy: add a missing include for stdint.h
Luca BRUNO [Fri, 6 May 2022 10:07:24 +0000 (10:07 +0000)]
ci/github: add a job for --without-libsystemd
Luca BRUNO [Fri, 6 May 2022 10:07:23 +0000 (10:07 +0000)]
lib/ostree-sysroot-deploy: add a missing include for stdint.h
Jonathan Lebon [Wed, 4 May 2022 18:55:37 +0000 (14:55 -0400)]
Merge pull request #2596 from cgwalters/release-2022-3
Colin Walters [Wed, 4 May 2022 17:51:45 +0000 (13:51 -0400)]
configure: post-release version bump
Colin Walters [Wed, 4 May 2022 17:50:06 +0000 (13:50 -0400)]
Release 2022.3
Dan Nicholson [Sat, 30 Apr 2022 16:34:12 +0000 (10:34 -0600)]
Merge pull request #2593 from smcv/txn-refcount
Fix abort-on-error behaviour of transactions
Simon McVittie [Sat, 30 Apr 2022 11:53:42 +0000 (12:53 +0100)]
repo: Correctly initialize refcount of temporary transaction
Previously, the reference count was left uninitialized as a result of
bypassing the constructor, and the intended abort-on-error usually
wouldn't have happened.
Fixes: 8a9737a "repo/private: move OstreeRepoAutoTransaction to a boxed type"
Resolves: https://github.com/ostreedev/ostree/issues/2592
Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie [Sat, 30 Apr 2022 11:20:11 +0000 (12:20 +0100)]
repo: Factor out _ostree_repo_auto_transaction_new()
This will allow the direct allocation in
ostree_repo_prepare_transaction() to be replaced with a call to this
function, avoiding breaking encapsulation.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Jonathan Lebon [Tue, 26 Apr 2022 17:33:08 +0000 (13:33 -0400)]
Merge pull request #2589 from cgwalters/ostree-boot-complete
Colin Walters [Fri, 22 Apr 2022 22:46:28 +0000 (18:46 -0400)]
Add an `ostree-boot-complete.service` to propagate staging failures
Quite a while ago we added staged deployments, which solved
a bunch of issues around the `/etc` merge. However...a persistent
problem since then is that any failures in that process that
happened in the *previous* boot are not very visible.
We ship custom code in `rpm-ostree status` to query the previous
journal. But that has a few problems - one is that on systems
that have been up a while, that failure message may even get
rotated out. And second, some systems may not even have a persistent
journal at all.
A general thing we do in e.g. Fedora CoreOS testing is to check
for systemd unit failures. We do that both in our automated tests,
and we even ship code that displays them on ssh logins. And beyond
that obviously a lot of other projects do the same; it's easy via
`systemctl --failed`.
So to make failures more visible, change our `ostree-finalize-staged.service`
to have an internal wrapper around the process that "catches" any
errors, and copies the error message into a file in `/boot/ostree`.
Then, a new `ostree-boot-complete.service` looks for this file on
startup and re-emits the error message, and fails.
It also deletes the file. The rationale is to avoid *continually*
warning. For example we need to handle the case when an upgrade
process creates a new staged deployment. Now, we could change the
ostree core code to delete the warning file when that happens instead,
but this is trying to be a conservative change.
This should make failures here much more visible as is.
Colin Walters [Thu, 21 Apr 2022 22:13:07 +0000 (18:13 -0400)]
Merge pull request #2588 from cgwalters/ostree-and-ima
docs: Add new IMA document
Colin Walters [Thu, 21 Apr 2022 20:19:14 +0000 (16:19 -0400)]
Update docs/ima.md
Co-authored-by: Jonathan Lebon <jonathan@jlebon.com>
Colin Walters [Thu, 21 Apr 2022 16:04:33 +0000 (12:04 -0400)]
docs: Add new IMA document
Now that the fixed code for `ima-sign` landed in
https://github.com/ostreedev/ostree-rs-ext/pull/283
Dan Nicholson [Thu, 21 Apr 2022 01:03:16 +0000 (19:03 -0600)]
Merge pull request #2584 from cgwalters/fix-ci
ci: Mask zincati for synthetic update
Colin Walters [Thu, 21 Apr 2022 00:23:10 +0000 (20:23 -0400)]
ci: Mask zincati for synthetic update
Our CI started falling over because coreos-assembler checks
for units stuck activating as of https://github.com/coreos/coreos-assembler/pull/2810
Really need to centralize the code for this and fix the root
problem, but...not today.
xref https://github.com/coreos/coreos-assembler/pull/2814
Colin Walters [Thu, 21 Apr 2022 00:22:12 +0000 (20:22 -0400)]
Merge pull request #2583 from cgwalters/curl-check-setopt
fetcher/curl: Consistently check return value `curl_easy_setopt`
Colin Walters [Wed, 20 Apr 2022 19:16:22 +0000 (15:16 -0400)]
fetcher/curl: Consistently check return value `curl_easy_setopt`
Static analyzers don't like when we only check it sometimes.
And we definitely want to know if any of these are failing.
Colin Walters [Tue, 12 Apr 2022 15:47:07 +0000 (11:47 -0400)]
Merge pull request #2578 from lucab/ups/move-fixture
tests: move fixture to fix installed tests
Luca BRUNO [Tue, 12 Apr 2022 09:53:54 +0000 (09:53 +0000)]
tests: move fixture to fix installed tests
This moves around the packed archive for bare-split-xattrs mode,
in order to fix installed tests.
Colin Walters [Sat, 9 Apr 2022 19:46:25 +0000 (15:46 -0400)]
Merge pull request #2577 from dbnicholson/man-html
Publish man pages
Dan Nicholson [Fri, 8 Apr 2022 21:30:07 +0000 (15:30 -0600)]
docs: Publish man pages
Make a copy of `man/html` to `docs/man` and then configure Jekyll to
include it verbatim like the API docs. A link is added to the main index
and the necessary commands are added to the github docs workflow.
Dan Nicholson [Fri, 8 Apr 2022 22:51:59 +0000 (16:51 -0600)]
man: Create an HTML index
This provides something that can serve at the root of the HTML man pages
tree.
Dan Nicholson [Fri, 8 Apr 2022 21:30:23 +0000 (15:30 -0600)]
man: Use custom XSL stylesheet for HTML output
This allows using a template stolen from systemd to turn references into
links.
Dan Nicholson [Fri, 21 May 2021 17:57:54 +0000 (11:57 -0600)]
man: Allow building HTML man pages
Add a --enable-man-html configure option to build HTML man pages using a
different stylesheet. The HTML pages aren't installed as I don't know
what purpose they'd serve on an actual installation.
Dan Nicholson [Sat, 9 Apr 2022 00:01:31 +0000 (18:01 -0600)]
man: Remove unnecessary nbsp's from ostree man page
I really don't know what these were for. In both man and HTML output
with a recent version of the Docbook XSL, the command synopses are
already indented. I don't see any reason why they'd need to be manually
indented more.
Jonathan Lebon [Mon, 4 Apr 2022 18:32:52 +0000 (14:32 -0400)]
Merge pull request #2576 from cgwalters/archive-handle-null-link
Colin Walters [Mon, 4 Apr 2022 14:25:35 +0000 (10:25 -0400)]
libarchive: Handle `archive_entry_symlink()` returning NULL
The `archive_entry_symlink()` API can definitely return `NULL`,
reading through the libarchive sources.
I hit this in the wild when using old ostree-ext to try to unpack
a chunked archive.
I didn't try to characterize this more, and sorry no unit test right
now.
Colin Walters [Tue, 29 Mar 2022 00:55:07 +0000 (20:55 -0400)]
Merge pull request #2569 from WOnder93/finalize-deployment-selinux-policy
deploy: Try to rebuild policy in new deployment if needed
Colin Walters [Mon, 28 Mar 2022 21:46:59 +0000 (17:46 -0400)]
deploy: Be a bit more verbose about SELinux bits
Let's log when we don't find the expected CLI argument which
will help debug things.
Ondrej Mosnacek [Wed, 9 Mar 2022 14:27:11 +0000 (15:27 +0100)]
deploy: Try to rebuild policy in new deployment if needed
Whenever the user has SELinux enabled and has any local
modules/modifications installed, it is necessary to rebuild the policy
in the final deployment, otherwise ostree will leave the binary policy
files unchanged from last deployment as it detects difference against
the base content (in rpm-ostree case this is the RPM content).
To avoid the situation where the policy binaries go stale once any local
customization of the policy is made, try to rebuild the policy as part
of sysroot_finalize_deployment(). Use the special
--rebuild-if-modules-changed switch, which detects if the input module
files have changed relative to last time the policy was built and skips
the most time-consuming part of the rebuild process if modules are
unchanged (thus making this a relatively cheap operation if the user
hasn't made any modifications to the shipped policy).
As suggested by Jonathan Lebon, this uses bubblewrap (via
g_spawn_sync()) to perform the rebuild inside the deployment's
filesystem tree, which also means that ostree will have a runtime
dependency on bubblewrap.
Partially addresses: https://github.com/coreos/fedora-coreos-tracker/issues/701
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Colin Walters [Mon, 28 Mar 2022 15:11:55 +0000 (11:11 -0400)]
Merge pull request #2573 from jtojnar/single-bin-coreutils-extensions
tests/test-cli-extensions: Fix with single-binary coreutils
Jan Tojnar [Sat, 26 Mar 2022 09:50:45 +0000 (10:50 +0100)]
tests/test-cli-extensions: Fix with single-binary coreutils
On systems where `coreutils` are built with `--enable-single-binary=symlinks` like Nix,
`/usr/bin/env` is symlinked to `/usr/bin/coreutils` and uses `argv[0]` to determine which program to run.
Since the `test-cli-extensions.sh` created a new symlink named `ostree-env`,
coreutils would be confused about the utility to choose, so running it would fail:
ostree-env: unknown program ‘ostree-env’
Try 'ostree-env --help' for more information.
Fixes: https://github.com/ostreedev/ostree/issues/2553
Jonathan Lebon [Mon, 14 Mar 2022 19:24:23 +0000 (15:24 -0400)]
Merge pull request #2566 from cgwalters/ci-update
Jonathan Lebon [Mon, 14 Mar 2022 19:20:54 +0000 (15:20 -0400)]
Merge pull request #2528 from cgwalters/test-crate-update
Colin Walters [Fri, 11 Mar 2022 20:37:15 +0000 (15:37 -0500)]
Update to sh-inline 0.2
Syncing up with the latest.
Colin Walters [Mon, 14 Mar 2022 13:27:07 +0000 (09:27 -0400)]
ci: Update docs workflow to use fcos-buildroot
This way we can also use `./ci/installdeps.sh` which avoids yet
another list of dependencies.
Colin Walters [Mon, 14 Mar 2022 13:21:15 +0000 (09:21 -0400)]
ci: Disable Ubuntu LTS
It doesn't have a new enough glib.
Colin Walters [Mon, 14 Mar 2022 12:52:51 +0000 (08:52 -0400)]
Merge pull request #2551 from q66/guri
lib: bump glib requirement to 2.66 and port to GUri
Daniel Kolesa [Thu, 17 Feb 2022 19:12:18 +0000 (20:12 +0100)]
glib: bump glib requirement to 2.66 and port to GUri
This removes the old SoupURI copypasta from previous generation
of libsoup and opens up a path for a simple libsoup3 port.
Colin Walters [Fri, 11 Mar 2022 20:34:59 +0000 (15:34 -0500)]
Update to rand 0.8
Part of general crate updates.
Colin Walters [Fri, 11 Mar 2022 20:33:02 +0000 (15:33 -0500)]
Update to ostree-ext 0.6
Part of general crate updates.
Colin Walters [Fri, 11 Mar 2022 20:32:27 +0000 (15:32 -0500)]
Update to nix 0.23
Part of general crate updates.
Colin Walters [Thu, 27 Jan 2022 21:37:30 +0000 (16:37 -0500)]
tests: Stop using inventory crate
I was reading this thread
https://internals.rust-lang.org/t/from-life-before-main-to-common-life-in-main/16006/30
and that reminded me about this code, which it turns out actually
doesn't compile with my default local cargo config:
```
$ cat ~/.cargo/config
[target.x86_64-unknown-linux-gnu]
rustflags = ["-Ctarget-cpu=native", "-C", "link-arg=-fuse-ld=lld"]
[profile.release]
incremental = true
$ cargo b
...
error: linking with `cc` failed: exit status: 1
|
= note: "cc" "-m64" "/var/srv/walters/src/github/ostreedev/ostree/target/debug/deps/ostree_test-
4ca8e730f9dc6ffc.10325uqlhkyr5uol.rcgu.o" "/var/srv/walte"
= note: ld.lld: error: undefined symbol: __start_linkme_NONDESTRUCTIVE_TESTS
>>> referenced by 22nn09lfsklfqvyy
>>> /var/srv/walters/src/github/ostreedev/ostree/target/debug/deps/ostree_test-
4ca8e730f9dc6ffc.22nn09lfsklfqvyy.rcgu.o:(ostree_tes)
```
For now let's just go back to having a static list of functions.
We don't have *too* many of those.
Luca Bruno [Fri, 11 Mar 2022 18:54:49 +0000 (18:54 +0000)]
Merge pull request #2563 from cgwalters/tmpfiles-run
tmpfiles: Create `/run/ostree`
Colin Walters [Thu, 10 Mar 2022 21:46:53 +0000 (16:46 -0500)]
tmpfiles: Create `/run/ostree`
This is referenced by https://github.com/ostreedev/ostree-rs-ext/blob/
9645cee4f29786ba51ae9d62a52eeef9230146fd/lib/src/globals.rs#L16
specifically used for the (container image) pull secret in
`/run/ostree/auth.json`.
Let's pre-create the directory so users don't have to.
Motivated by https://github.com/openshift/machine-config-operator/pull/3007#discussion_r824172564
Luca Bruno [Fri, 11 Mar 2022 17:57:26 +0000 (17:57 +0000)]
Merge pull request #2564 from damdo/patch-1
README.md: update ostree-rs language binding link
Damiano Donati [Fri, 11 Mar 2022 11:12:43 +0000 (11:12 +0000)]
README.md: update ostree-rs language binding link
According to the description on https://gitlab.com/fkrull/ostree-rs/ the repository is now moved to https://github.com/ostreedev/ostree-rs
Luca Bruno [Thu, 10 Mar 2022 21:05:02 +0000 (21:05 +0000)]
Merge pull request #2562 from josepht/main
Add Fedora Kinoite link to index.md also.
Joe Talbott [Wed, 9 Mar 2022 13:58:12 +0000 (08:58 -0500)]
Add Fedora Kinoite link to index.md also.